package com.smart.manager.pop.entities.models;

import com.smart.common.entities.core.BaseLongModel;
import com.smart.manager.pop.entities.assembler.Answer;
import com.smart.manager.pop.entities.assembler.DsRule;
import io.ebean.annotation.DbJson;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import java.util.List;


/**
 * 问卷管理
 *
 * @author Administrator
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@Accessors(chain = true)

public class PopDisQuestionnaire extends BaseLongModel {

    @ApiModelProperty(value = "分享人")
    private Long shareId;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "性别  0 = 男 1 = 女 99 = 保密")
    private Integer sex;

    @ApiModelProperty(value = "手机号")
    private String mobilePhone;

    @ApiModelProperty(value = "问卷内容")
    @DbJson
    private List<Answer> substanceList ;




}
